#ifndef __DEVLIST_H__
#define __DEVLIST_H__

#include "appconfig.h"

typedef struct
{
	rt_uint32_t id;    //设备ID
	rt_uint8_t type;   //设备类型
	rt_uint8_t name[12];
	rt_uint8_t alarmType[32];
	rt_uint8_t alarmTone[32];
	rt_uint8_t uploadRd[32];
}devListDef;



rt_err_t add_to_devlist(devListDef *dev);

rt_err_t remove_to_devlist(devListDef *dev);

void show_devlist(void);

rt_err_t dev_in_devlist(rt_uint32_t id);

rt_err_t get_dev_type_string(rt_uint8_t type,rt_uint8_t *buf,rt_uint8_t size);

void devlist_pos_content(rt_uint8_t pos,devListDef *dev);


#endif

